//导入封装好的axios
import request from "./request"
import qs from "qs"
//定义一个请求精品得数据
export const JingPingAPI = () => request.get("/products/recommend")

//定义一个发送验证码的请求
//params 预期是一个手机号
//【第一步：定义一个方法，请求接口】
export const SendSMSAPI = (params) => request.post("/sendSMS", qs.stringify(params))
//登录请求
export const PhoneReginAPI = (params) => request.post("/phoneRegin", qs.stringify(params))
//微信登录请求
export const WeiXinLoginAPI = (params) => request.post(`/wechatUsers/PCLogin`, qs.stringify(params))
//手机绑定微信
export const bingdingAPI = (params) => request.post(`/wechatUsers/binding`, qs.stringify(params))